package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @Author: PengFei.He
 * @Date: 2024/11/6 19:48
 * @Function:
 */
@Data
@TableName("hotel")
public class Hotel implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("img")
    private String img;

    @TableField("price")
    private String price;

    @TableField("num")
    private Integer num;
}
